Create shared memory region and returns an file descriptor. The resulting file descriptor can be
mmap'ed to process memory space with PROT_READ | PROT_WRITE | PROT_EXEC. Access to shared memory
region can be restricted with {@link ASharedMemory_setProt}.
Use close() to release the shared memory region.
Available since API level 26.
\param name an optional name.
\param size size of the shared memory region
\return file descriptor that denotes the shared memory; error code on failure.
Create a shared memory region.
Create shared memory region and returns an file descriptor. The resulting file descriptor can be mmap'ed to process memory space with PROT_READ | PROT_WRITE | PROT_EXEC. Access to shared memory region can be restricted with {@link ASharedMemory_setProt}.
Use close() to release the shared memory region.
Available since API level 26.
\param name an optional name. \param size size of the shared memory region \return file descriptor that denotes the shared memory; error code on failure.